package com.huike.business.mapper;

import java.util.List;
import com.huike.business.domain.TbBusinessTrackRecordResult;
import com.huike.business.domain.vo.BusinessTrackVo;
import org.apache.ibatis.annotations.Param;

/**
 * 商机跟进记录Mapper接口
 * @date 2021-04-28
 */
public interface TbBusinessTrackRecordMapper {

    /*根据商机id查询商机跟进记录*/
    List<TbBusinessTrackRecordResult> list(Long id);
    /*添加商机跟进记录时更新线索表数据*/
    void updateBusinessTrack(BusinessTrackVo businessTrackVo);
    /*添加商机记录跟进数据*/
    void addBusinessTrack(@Param("btvo") BusinessTrackVo businessTrackVo,@Param("username") String username);
    /*添加伪商机到商机跟进表*/
    void insertBussinessTrackRecord(@Param("id") Long id,@Param("reson") Integer reson,@Param("username") String username);
}